package dao;/**
 * @Author:luoht
 * @Description：
 * @Date：Create in 21:36 2018/10/24
 */

import com.baizhi.luoht.dao.UserDAO;
import com.baizhi.luoht.entity.User;
import org.apache.xbean.spring.context.ClassPathXmlApplicationContext;
import org.junit.Test;

/**
 * @program: ems
 * @description:
 * @author: luoht
 * @create: 2018-10-24 21:36
 **/

public class Useraaa  {

    @Test
    public void UserDAO(){
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("/spring/applicationContext.xml");
        UserDAO userDAO = (UserDAO) applicationContext.getBean("userDAO");
        User sediment = userDAO.getUser("Sediment");
        System.out.println(sediment);
    }





}
